package com.example.his.api.db.dao;

import com.example.his.api.db.pojo.GoodsEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface GoodsDao {

  public ArrayList < HashMap > searchByPage( Map param );

  public Long searchCount( Map param );

  // 新增
  public int insert( GoodsEntity entity );

  //  修改查询ID
  public HashMap searchById( Map param );

  // 更新
  public int update( GoodsEntity entity );

  // 文件
  public GoodsEntity searchEntityById( int id );

  public int updateCheckup( Map param );

  // Switch 状态
  public int updateStatus( Map param );

  // 删除
  public ArrayList < String > searchImageByIds( Integer[] ids );

  public int deleteByIds( Integer[] ids );

  public ArrayList < HashMap > searchByPartIdLimit4( int partId );

  public ArrayList < HashMap > searchListByPage( Map param );

  public long searchListCount( Map param );

}




